﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Models.Settlements>" %>
<%@ Import Namespace="CRM.Models" %>





<%: Html.DevExpress().GridView(settings=>
                                                      {
                                                          settings.Name = "gSettlements";
                                                          settings.KeyFieldName = "IdSettlement";
                                                          settings.SettingsBehavior.AllowFocusedRow = true;
                                                          settings.Columns.Add("IdSettlement");
                                                          settings.Columns.Add("NameRu");
                                                          settings.ClientSideEvents.FocusedRowChanged = "OnGridFocusedRowChanged";
                                                          settings.CallbackRouteValues = new {  Action = "SettlementsChooserGrid" };
                                                          
                                                      }).Bind(DB.Settlements).GetHtml() %>

